package com.woyao.core.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by summerwind on 2016-05-31.
 */
public class Demand implements Serializable {
    private Integer id =0;
    private Integer member_id =0;
    private String member_title ="";

    private String title ="";
    private String description="";

    private String  how ="";
    private String  how_names="";

    @JsonDeserialize(contentAs = KeyValue.class, as = ArrayList.class)
    private ArrayList<KeyValue>  relation = new ArrayList<KeyValue>();

    @JsonDeserialize(contentAs = KeyValue.class, as = ArrayList.class)
    private ArrayList<KeyValue>  include = new ArrayList<KeyValue>();

    @JsonDeserialize(contentAs = MediaSummary.class, as = ArrayList.class)
    private ArrayList<MediaSummary>  medias = new ArrayList<MediaSummary>();

    private String image = "";
    private List<String> pics = new ArrayList<>();
    private float budget = 0.0f;
    private float charge = 0.0f;

    private float bidding =0.0f;

    private Integer available =0;

    public float getBudget() {
        return budget;
    }

    public void setBudget(float budget) {
        this.budget = budget;
    }
    
    public float getCharge() {
        return charge;
    }

    public void setCharge(float charge) {
        this.charge = charge;
    }

    public float getBidding() {
        return bidding;
    }

    public void setBidding(float bidding) {
        this.bidding = bidding;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMember_id() {
        return member_id;
    }

    public void setMember_id(Integer member_id) {
        this.member_id = member_id;
    }

    public String getMember_title() {
        return member_title;
    }

    public void setMember_title(String member_title) {
        this.member_title = member_title;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    

    public ArrayList<KeyValue> getRelation() {
        return relation;
    }

    public void setRelation(ArrayList<KeyValue> relation) {
        this.relation = relation;
    }


    public ArrayList<KeyValue> getInclude() {
        return include;
    }

    public void setInclude(ArrayList<KeyValue> include) {
        this.include = include;
    }


    public ArrayList<MediaSummary> getMedias() {
        return medias;
    }

    public void setMedias(ArrayList<MediaSummary> medias) {
        this.medias = medias;
    }



    public String getHow() {
        return how;
    }
    public void setHow(String how) {
        this.how = how;
    }

    public String getHow_names() {
        return how_names;
    }
    public void setHow_names(String how_names) {
        this.how_names = how_names;
    }


    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }


    public List<String> getPics() {
        return pics;
    }

    public void setPics(List<String> pics) {
        this.pics = pics;
    }

    public Integer getAvailable() {
        return available;
    }

    public void setAvailable(Integer available) {
        this.available = available;
    }
}
